    $(document).ready(function() {
        Judgeidentity()
        statisticsCharts()
    })



    /*图表*/

    function statisticsCharts() {
        var charts = echarts.init(document.getElementById('content-right-line'));
        option = {
            title: {
                text: '维保次数变化曲线',
                subtext: '月度',
                textStyle: {
                    color: '#fff'
                }
            },
            legend: {
                data: ['总数', '正常', '异常'],
                textStyle: {
                    color: '#fff'
                }
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '10%',
                top: '20%',
                containLabel: true
            },
            color: ['#F5B310', '#17E0BC', '#EF0D0D'],
            xAxis: [{
                type: 'category',
                boundaryGap: false,
                data: ['2019-04', '2019-05', '2019-06', '2019-07', '2019-08', '2019-09', '2019-10'],
                axisTick: {
                    alignWithLabel: true
                },
                axisTick: {
                    alignWithLabel: true
                },
                axisLine: {
                    lineStyle: {
                        color: '#19459B',
                        width: 2
                    }
                },
                axisLabel: {
                    color: 'white',
                    fontSize: '10'
                },
                axisTick: {
                    show: false
                },
            }],
            yAxis: [{
                type: 'value',
                axisLine: {
                    lineStyle: {
                        color: '#19459B',
                        width: 2
                    }
                },
                splitLine: {
                    lineStyle: {
                        color: '#0057D9',
                        opacity: 0.1
                    }
                },
                axisLabel: {
                    color: 'white',
                    fontSize: '10'
                },
                axisTick: {
                    show: false
                },
            }],
            series: [{
                name: '总数',
                data: [118, 124, 136, 197, 145, 125, 145],
                type: 'line',
                smooth: true
            }, {
                name: '正常',
                data: [14, 52, 42, 75, 41, 28, 13],
                type: 'line',
                smooth: true
            }, {
                name: '异常',
                data: [65, 15, 64, 41, 65, 54, 17],
                type: 'line',
                smooth: true
            }]
        };
        charts.setOption(option);


        var charts1 = echarts.init(document.getElementById('content-right-crl'));
        var option1 = {
            title: {
                text: '现场消防设施情况分项统计',
                textStyle: {
                    color: '#fff'
                },
                x: 'center',
            },
            tooltip: {
                trigger: 'item',
                formatter: "{a} <br/>{b} : {c} ({d}%)"
            },
            legend: {
                orient: 'vertical',
                left: '10%',
                top: '25%',
                textStyle: {
                    color: '#fff'
                },
                data: ['消防栓', '喷淋头', '消防泵', '烟感', '防火门', '消防风机', '消防水箱', '火灾自动报警系统']
            },
            series: [{
                name: '访问来源',
                type: 'pie',
                radius: '55%',
                center: ['65%', '55%'],
                data: [
                    { value: 35, name: '消防栓' },
                    { value: 30, name: '喷淋头' },
                    { value: 24, name: '消防泵' },
                    { value: 15, name: '烟感' },
                    { value: 15, name: '防火门' },
                    { value: 8, name: '消防风机' },
                    { value: 12, name: '消防水箱' },
                    { value: 12, name: '火灾自动报警系统' }
                ],
                itemStyle: {
                    emphasis: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            }]
        };
        charts1.setOption(option1);
    }